<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>JavaScript</title>
		
	</head>
	<body>
		<script>
		var name = prompt("请输入您的姓名");
		document.write("欢迎您，"+name+"!");
		</script>
	</body>
</html>
